package com.zhuangjie.order.enums;

/**
 * 支付类型
 */
public class OrderState {
    /**
     * 1：待支付
     */
    public static final int WAITING_FOR_PAYMENT = 1;

    /**
     * 2：待接单
     */
    public static final int WAITING_FOR_ACCEPTANCE = 2;

    /**
     * 已接单
     */
    public static final int ORDER_ACCEPTED = 3;
    /**
     * 制作完成 (待取餐)
     */
    public static final int PRODUCTION_COMPLETED = 4;

    /**
     * 配送中
     */
    public static final int IN_DELIVERY = 5;

    /**
     * 已完成
     */
    public static final int ORDER_COMPLETED = 6;

    /**
     * 申请售后
     */
    public static final int APPLY_FOR_AFTER_SALE = 7;

    /**
     * 已取消
     */
    public static final int ORDER_CANCELED = 8;

    /**
     * 已评价
     */
    public static final int ORDER_EVALUATED = 9;


    /**
     * 获得完成终点
     *
     * @return {@link int[]}
     */
    public static int[] getCompletedEndPoints() {
        return new int[]{ORDER_COMPLETED, ORDER_EVALUATED};
    }
}
